
package com.springcloud.zuul.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.springcloud.zuul.common.utlis.JsonResult;
import com.springcloud.zuul.common.utlis.R;
import com.springcloud.zuul.entity.SysUserTokenEntity;

/**
 * 用户Token
 *
 */
public interface SysUserTokenService extends IService<SysUserTokenEntity> {

	/**
	 * 生成token
	 * @param userId  用户ID
	 */
	JsonResult createToken(String userId);

	/**
	 * Description:退出，修改token值
	 * @author zhlu
	 * @date 2019/12/26 2:03 下午
	 * @param token
	 * @return void
	 */
	void logout(String token);

}
